<template>
    <div class="tabbar">
        <div class="tabbar-list">
            <router-link to="/home" custom v-slot="{ navigate, isActive }">
          <div @click="navigate" :class="isActive ? 'active tabbar-item' : 'tabbar-item'">
            <div class="icon-box">
              <i class="no-inherit iconfont icon-home"></i>
            </div>
            <div class="tabbar-text"><span>首页</span> </div>
          </div>
        </router-link>
        <router-link to="/video" custom v-slot="{ navigate, isActive }">
          <div @click="navigate" :class="isActive ? 'active tabbar-item' : 'tabbar-item'">
            <div class="icon-box">
              <i class="no-inherit iconfont icon-shipin2"></i>
            </div>
            <div class="tabbar-text"><span>视频</span> </div>
          </div>
        </router-link>
        <router-link to="/news" custom v-slot="{ navigate, isActive }">
          <div @click="navigate" :class="isActive ? 'active tabbar-item' : 'tabbar-item'">
            <div class="icon-box">
              <i class="no-inherit iconfont icon-xinfengyoujian"></i>
            </div>
            <div class="tabbar-text"><span>消息</span> </div>
          </div>
        </router-link>
        <router-link to="/user/myhome" custom v-slot="{ navigate, isActive }">
          <div @click="navigate" :class="isActive ? 'active tabbar-item' : 'tabbar-item'">
            <div class="icon-box">
              <i class="no-inherit iconfont icon-wode"></i>
            </div>
            <div class="tabbar-text"><span>我的</span> </div>
          </div>
        </router-link>
        </div>

    </div>
</template>

<script>
export default {

}
</script>

<style lang="scss" scoped>

.tabbar{
    width: 11.22rem;
    height: 1.45rem;
    position: fixed;
    bottom:0;
    left: 0;
    z-index: 1999;
    background: #fff;
    border-top: 1px solid rgb(205, 205, 205);

    .tabbar-list{
        width: 100%;
        height: 100%;
        display: flex;
        .active{
        color: #f60 !important;
        }
        .tabbar-item{
            width: 2.8rem;
            color: #333;
            text-align: center;

            padding: .1rem 0;
            i{
                font-size: .58rem;

            }
            .tabbar-text{
                line-height: .3rem;
                span{
                    font-size: .3rem;

                }
            }
        }
    }
}
</style>
